package com.china08.yxyapi.repository.db.declaration;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import com.china08.yxyapi.entity.db.huodong.declaration.YxyHuodongHrbDeclaration;

public interface YxyHuodongHrbDeclarationRepository extends JpaRepository<YxyHuodongHrbDeclaration, String> {

    List<YxyHuodongHrbDeclaration> findByIsBestOrderByCreatedDateDesc(Integer i);

    Page<YxyHuodongHrbDeclaration> findByDeclarationNotNull(Pageable pageable);

    YxyHuodongHrbDeclaration findByTeacherId(String userId);

    YxyHuodongHrbDeclaration findTopByOrderByOrderNumDesc();

}
